<script setup lang="ts">
import type { UserMessage } from "@/types/userTypes.d.ts";

withDefaults(defineProps<{
    userMessage: UserMessage
}>(), {
    userMessage: () => (<UserMessage>{}),
});

</script>

<template>
    <van-row>
        <van-col span="6">
            <p>{{userMessage.collectionNumber}}</p>
            <p>收藏</p>
        </van-col>
        <van-col span="6">
            <p>{{userMessage.likeNumber}}</p>
            <p>关注</p>
        </van-col>
        <van-col span="6">
            <p>{{userMessage.score}}</p>
            <p>积分</p>
        </van-col>
        <van-col span="6">
            <p>{{userMessage.couponNumber}}</p>
            <p>优惠券</p>
        </van-col>
    </van-row>
</template>

<style scoped lang="scss">
.van-row {
    margin: 0 -15px;
    padding-top: 15px;

    p {
        text-align: center;

        &:first-child {
            font-size: 18px;
            font-weight: 500;
        }

        &:last-child {
            color: var(--cp-dark);
            font-size: 12px;
            padding-top: 4px;
        }
    }
}
</style>
